package com.aaa.entity;

import com.aaa.ann.ColumnAnn;
import com.aaa.ann.EntityAnn;
import com.aaa.ann.SetIdAnn;

@EntityAnn(tableName = "dept")
public class Dept {
//  @ColumnAnn(columnName = "deptid")
  @SetIdAnn(columnName = "deptid")
  private long deptid;
  @ColumnAnn(columnName = "deptname")
  private String deptname;
  @ColumnAnn(columnName = "location")
  private String location;
//  @SetIdAnn(columnName = "id")
//  private long id;


  public Dept() {
  }

  public Dept(long deptid, String deptname, String location) {
    this.deptid = deptid;
    this.deptname = deptname;
    this.location = location;
  }

//  public Dept(String deptname, String location, long id) {
//    this.deptname = deptname;
//    this.location = location;
//    this.id = id;
//  }

//  public long getId() {
//    return id;
//  }
//
//  public void setId(long id) {
//    this.id = id;
//  }

  public long getDeptid() {
    return deptid;
  }

  public void setDeptid(long deptid) {
    this.deptid = deptid;
  }


  public String getDeptname() {
    return deptname;
  }

  public void setDeptname(String deptname) {
    this.deptname = deptname;
  }


  public String getLocation() {
    return location;
  }

  public void setLocation(String location) {
    this.location = location;
  }

}
